<template>
  <div>
 <h2>商品相关信息</h2>
 <div>
   <div>商品id: <strong>{{ data.goodNo }}</strong></div>
   <div>商品名称: <strong>{{ data.goodName}}</strong></div>
   <div v-if="data.desc">商品描述: <slot name="desc" :img="data.desc">{{goodInfoCur.desc}}</slot></div>
   <div v-else>商品描述: <slot name="desc" :img="data.desc"></slot></div>
 </div>

</div>
</template>

<script>

export default {
props:['data'],


data() {
return {
 show: false
}
},
methods: {
changeCond() {
 this.show = !this.show
 console.log(this.data);
 
}
}
}
</script>

<style>

</style>